#include "stdafx.h"
#include "CC_Lock.h"

CC_Mutex::CC_Mutex()
{
	InitializeCriticalSection(&cc);
}

CC_Mutex::~CC_Mutex()
{
	DeleteCriticalSection(&cc);
}

void CC_Mutex::Enter()
{
	EnterCriticalSection(&cc);
}

void CC_Mutex::Leave()
{
	LeaveCriticalSection(&cc);
}

int CC_Mutex::ShowLockCount()
{
	return cc.LockCount;
}